class JobMarketModule:
    def __init__(self, storage):
        self.storage = storage

    def create_job_post(self, job_description, bounty, creator):
        job_id = len(self.storage.get_jobs()) + 1
        self.storage.insert_job(job_id, creator, job_description, bounty)
        return {"message": "工作任务已创建"}, 201

    def apply_for_job(self, job_id, applicant):
        self.storage.apply_for_job(job_id, applicant)
        return {"message": "申请成功"}, 200